{% extends "base.html" %}

{% load i18n %}
{% load svn_app_version %}
{% block login %}
    {% if user.is_authenticated %}
		<b>{{ user }}</b> | <a href="{% url acct_email %}">{% trans "Account" %}</a> | {% if user.is_staff %}<a href="/admin/">{% trans "Admin" %}</a> | {% endif %}<a href="{% url acct_logout %}">{% trans "Log-out" %}</a>
    {% else %}
        <a href="{% url acct_login %}">{% trans "Log-In" %}</a>
    {% endif %}
{% endblock %}

{% comment %}
{% block locale_switcher %}
    <form action="{% if request.user.is_authenticated %}{% url acct_language_change %}{% else %}/i18n/setlang/{% endif %}" method="post" id="locale_switcher">
        <select name="language" onchange="$('#locale_switcher').submit()">
            {% for lang in LANGUAGES %}
                <option value="{{ lang.0 }}"{% ifequal lang.0 LANGUAGE_CODE %} selected="selected"{% endifequal %}>{{ lang.1 }}</option>
            {% endfor %}
        </select>
    </form>
{% endblock %}
{% endcomment %}

{% block logo_link_image %}Common Pastures: Member Services{% endblock %}

{% block tabs %}
{% comment %}
    <table>
        <tr>
            <td class="tab tab_home"><div><a href="{% url home %}">{% trans "Home" %}</a></div></td>
        </tr>
    </table>
{% endcomment %}
{% endblock %}

{% block right_tab %}
    {% if user.is_authenticated %}
		<div id="navcontainer">
            <ul id="navlist">
				<li class="tab rtab_calendar"><div><a href="{% url m_calendar 1 %}">{% trans "Calendar" %}</a></div></li>
				<li class="tab rtab_orgs"><div><a href="{% url orgs.views.orgs %}">{% trans "Circles" %}</a></div></li>
				<li class="tab rtab_households"><div><a href="{% url households.views.households %}">{% trans "Households" %}</a></div></li>
                <li class="tab rtab_profile"><div><a href="{% url profiles.views.profile user %}">{% trans "Profile" %}</a></div></li>
				<li class="tab rtab_faq"><div><a href="{% url faq %}">{% trans "FAQ" %}</a></div></li>
				{% comment %}
                <li class="tab rtab_photos"><div><a href="{% url photos.views.photos %}">{% trans "Photos" %}</a></div></li>
                <li class="tab rtab_blogs"><div><a href="{% url blog.views.blogs %}">{% trans "Blogs" %}</a></div></li>
                <li class="tab rtab_tweets"><div><a href="{% url tweets_you_follow %}">{% trans "Tweets" %}</a></div></li>
                <li class="tab rtab_bookmarks"><div><a href="{% url bookmarks.views.bookmarks %}">{% trans "Bookmarks" %}</a></div></li>
				
                <li class="tab rtab_inbox"><div><a href="{% url messages_inbox %}">{% trans "Messages" %} ({{ combined_inbox_count }})</a></div></li>
				{%endcomment %}
            </ul>
		</div>
    {% endif %}
{% endblock %}

{% block footer %}
<div class="legal">
    {% trans "&copy; 2008 Common Pastures" %}
    - <a href="http://pinaxproject.com" target="_blank" >{% trans "Powered by Pinax" %}</a>
    - <a href="{% url terms %}">{% trans "Terms of Service" %}</a>
    - <a href="{% url privacy %}">{% trans "Privacy Policy" %}</a>
    - Version: {% svn_app_version %}
    - Django: {% svn_app_version "django" %}
</div>
{% endblock %}
